import React from 'react'
const withFetch= (ComposeComponenr)=>{
    return class extends React.Component{
        render(){
            return (
                <ComposeComponenr {...this.props}/>
            )
        }
    }
}
class MyDate extends React.Component{
    render(){
        return(
            <div>
                mydata:{this.props.data}
            </div>
        )
    }
}
const WithFetch=withFetch(MyDate)
export default class Demo extends React.Component{
    render(){
        return(
            <div>
                <WithFetch data={'小仙女'} />
            </div>
        )
    }
}